<?php $this->registerResourcePackage('bootstrapTagsinput')?>
<div class="form-group">
	<label class="col-sm-3 control-label">
		<?php echo $params['label']; ?>
	</label>
	<div class="col-sm-7 taginput-one-wrapper" data-errors="<?php echo json_encode($errors)?>">
		<input type="text" max-tag="1"
			<?php echo $this->prepareAttr($params['htmlOptions'])?>
			name="<?php echo $name ?>"
			class="form-control tagsinput-one"
			data-value="<?php echo $this->txt2attr($value) ?>"
			/>

		<div class="element-notice description"><?php echo $params['description']; ?></div>
		<div class="element-notice error"><?php echo implode(', ', $errors) ?></div>
	</div>
</div>